/* Common Header Styles */
:root {
    --header-height: 60px;
    --header-bg: var(--white);
    --header-text: var(--text-color);
    --header-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --nav-item-spacing: 24px;
}

.header {
    height: var(--header-height);
    background-color: var(--header-bg);
    box-shadow: var(--header-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--header-text);
    font-size: 24px;
    font-weight: bold;
}

.header-logo img {
    height: 40px;
    margin-right: 10px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--nav-item-spacing);
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: var(--text-color);
}

.cart-icon {
    position: relative;
    color: var(--text-color);
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .header-nav {
        display: none; /* Hide navigation on mobile */
    }

    .header-logo {
        font-size: 20px;
    }

    .header-logo img {
        height: 32px;
    }

    .header-actions {
        gap: 12px;
    }
}

/* Add margin to main content to account for fixed header */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}
